package com.jbit.examSystem.service;

import com.jbit.examSystem.dto.UserDto;
import com.jbit.examSystem.dto.UserDto;
import com.jbit.examSystem.exception.LoginErrorException;
import com.jbit.examSystem.pojo.Teacher;
import com.jbit.examSystem.pojo.User;

import java.util.Date;
import java.util.List;

public interface TeacherService {
    void register(UserDto userDto);

    Teacher checkEmail(String email);

    Teacher login(UserDto userDto) throws LoginErrorException;

    void setLoginTime(Date loginTime, Integer id, Date lastLoginTime);

    void updateInfo(User user);

    Teacher findById(Integer id);

    List<Teacher> findAll();

    List<User> getAllTeacher(String userName);
}
